

// server/api/users.ts
export default defineEventHandler(async (event) => {
    console.log('event', event);
    try {
        // 获取查询参数
        const query = getQuery(event)
        const name = query.name
        const data = await $fetch('http://192.168.110.16:8080/api/latest-import-url?name=' + name)
        console.log('API 数据:', data)
        return { detail: data }
      } catch (error) {
        console.error('API 调用失败:', error)
        return { detail: [] }
      }

})